package com.my.hp_hr.service.liuhao_service;

import com.my.hp_hr.dao.liuhao_dao.LeaveDao;
import com.my.hp_hr.entity.liuhao_entity.Leave;

import java.util.List;

public class LeaveService {
    public LeaveDao dao=new LeaveDao();
    public void addEmployeeLeave(Leave leave) throws Exception {
        dao.addEmployeeLeave(leave);
    }

    public int toGetTotal(int number) throws Exception {
        return dao.toGetTotal(number);
    }

    public List<Leave> pageLeaveList(int current, int pagesize,int number) throws Exception {

        return dao.pageLeaveList(current,pagesize,number);
    }
}
